<div id="top5_root">
    <div id="top5_footer">
	<div id="top5_header">
            <?php //echo $qRow['m_title'].' = '.$q2Row['m_id'].'<br />';?>
                <table class="top5_header_child" cellpadding="0" cellspacing="0" width="100%" border="0">
                <tr>
                    <?php
                    $query = mysql_query("select * from dt_modules where `type`='top' and `m_visible`='1' and `m_id` ='".$dRow['m_id']."'");
                    while ($qRow = mysql_fetch_array($query)){
                        $array = explode("/", $qRow['m_title']);
                        echo '<td class="T5HC1"><a href="../../tops.html">'.$array[0].'</a></td><td class="T5HC2"><a href="../../tops.html">'.$array[1].'</a></td>';
                    }
                    ?>
                </tr>
            </table>
        </div>
	<div id="top5_content">
            <ol id="top5_ol">
            <?php $q3 = mysql_query("select * from dt_top_images where m_id = '".$dRow['m_id']."'");
                while ($q3Row = mysql_fetch_array($q3)){
                    $str = limitclear($q3Row['description'], 90).'...';?>

                    <li class="top5_li">
                        <p class="top5_p">
                        <?php
                            if ($q3Row['image_file'] != ''){
                                if(preg_match('/Firefox/i',$_SERVER['HTTP_USER_AGENT']))
                                    echo '<img src="../../uploads/top_img/thumbs/thumb_90-'.str_replace(" ", "_", $q3Row['image_file']).'" width="90" height="70" align="right" style="margin-top: 5px;">';
                                else
                                    echo '<img src="../../uploads/top_img/thumbs/thumb_90-'.str_replace(" ", "_", $q3Row['image_file']).'" width="90" height="70" align="right" style="margin-top: 10px;">';
                            }
                            echo '<a class="top5_link" href="../../top/'.$q3Row['t_id'].'/'.cleanitup($q3Row['title']).'.html">'.$q3Row['title'].'</a>';
                            echo '<a class="link_vaca" href="../../top/'.$q3Row['t_id'].'/'.cleanitup($q3Row['title']).'.html">'.strip_tags($str).'</a>';
                        ?>
                                    <!-- <div class="line_break">&nbsp;</div> -->
                    </li>
            <?php }?>
            </ol>
        </div>
    </div>
</div>